package db.dbo;

import db.dao.UserDAO;
import db.dto.UserDTO;

public class UserDBO {
	public int getRole(String name, String pass) {
		UserDAO userDAO = new UserDAO();
		UserDTO userDTO = userDAO.getUser(name, pass);
		if(userDTO == null) {
			return -1;
		}
		else {
			return userDTO.getRole();
		}
	}
}
